package com.ruoyi.utils;

/**
 * @Description: TODO
 * @Create by: jacob
 * @Date: 2025/1/24
 * 遇见未来的自己
 */
public class WxUrl {

    /**通过code换取access_token**/
    public static final String ACCESS_TOKEN_BY_CODE_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=APPSECRET&code=CODE&grant_type=authorization_code";
    /**刷新access_token**/
    public static final String ACCESS_TOKEN_REFRESH_BY_CODE_URL = "https://api.weixin.qq.com/sns/oauth2/refresh_token?appid=APPID&grant_type=refresh_token&refresh_token=REFRESH_TOKEN";

    /**通过APPID和APPSECRET换取access_token**/
    public static final String ACCESS_TOKEN_BY_APPID_AND_SECRET_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";

    /**通过access_token和openid拉取用户信息**/
    public static final String WX_USER_INFO_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";

    /**通过access_token获得jsapi_ticket*/
    public static final String JSAPI_TICKET = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi";


    /**授权第三方开放平台*/
    public static final String COMPONENT_LOGIN_PAGE_PC_URL = "https://mp.weixin.qq.com/cgi-bin/componentloginpage?component_appid=wxf3ab1a15ccb35ad2&pre_auth_code=PRE_AUTH_CODE&redirect_uri=REDIRECT_URI&auth_type=AUTH_TYPE";
    /**预授权码（pre_auth_code）是第三方平台方实现授权托管的必备信息*/
    public static final String API_CREATE_PRE_AUTH_CODE_URL = "https://api.weixin.qq.com/cgi-bin/component/api_create_preauthcode?component_access_token=COMPONENT_ACCESS_TOKEN";












}
